# -*- coding:utf-8 -*-
# 导入包
# 方法一
# from my_package import my_moudel_first
# test = my_moudel_first.Func(20, 40)
# test.func_demo()


# 方法二
# import my_package.my_moudel_first
# test = my_package.my_moudel_first.Func(20, 40)
# test.func_demo()


# 同时导入两个模块
# from my_package import my_moudel_first, my_moudel_second
# test1 = my_moudel_first.Func(20, 40)
# test1.func_demo()
#
# test2 = my_moudel_second.Demo(100, 40)
# test2.func_demo()


# 方式三
# from 包名 import *
# # 注意：必须在 __init__.py ⽂件中添加__all__ = [] ，控制允许导⼊的模块列表。
from my_package import *
test1 = my_moudel_first.Func(20, 40)
test1.func_demo()

test2 = my_moudel_second.Demo(100, 40)
test2.func_demo()
